/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.insurance.service.dto;

import lombok.Data;

import java.sql.Timestamp;
import java.util.List;
import me.zhengjie.annotation.Query;

/**
* @website https://el-admin.vip
* @author HeHui
* @date 2021-12-26
**/
@Data
public class InsuredUserQueryCriteria {

    /** 精确 */
    @Query
    private Long ownerCompanyId;

    /**
     * 用户名
     */
    @Query(type = Query.Type.RIGHT_LIKE)
    private String userName;

    /**
     * 用户手机
     */
    @Query(type = Query.Type.RIGHT_LIKE)
    private String userMobile;

    /**
     * 用户身份证
     */
    @Query(type = Query.Type.RIGHT_LIKE)
    private String userIdCard;

    /**
     * 开始结束时间
     */
    @Query(type = Query.Type.BETWEEN, propName = "policyStartTime")
    private List<Timestamp> policyTime;


    /**
     * 在保状态
     */
    @Query
    private Integer policyStatus;

    /**
     * 是否删除
     */
    @Query
    private Integer isDeleted;

    @Query(type = Query.Type.GREATER_THAN, propName = "policyStartTime")
    private Timestamp gtPolicyTime;

    @Query(type = Query.Type.LESS_THAN, propName = "policyStartTime")
    private Timestamp ltPolicyTime;
}